class ImagenesBlogs < ActiveRecord::Migration
  def self.up
    create_table 'imagenes_blogs', :id => false do |t|
      t.column :imagen_id, :integer, :null => false
      t.column :blog_id,  :integer, :null => false
      t.column :orden, :integer, :null => false, :default => 0
    end
  end

  def self.down
    drop_table 'imagenes_blogs'
  end
end